package demo.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

/**
 * @author ml
 * @create 2017-12-26--16:27
 */
public class DemoInterceptor implements Interceptor {
    @Override
    public void intercept(Invocation inv) {

        System.out.println("执行之前 "+inv.getController()+inv.getMethodName());

        inv.invoke();

        System.out.println("执行之后 "+inv.getController()+inv.getMethodName());



    }
}
